Fix fn type mismatch error
authorDavid Davidović <geosoft.corp@gmail.com>
Wed, 24 Dec 2014 02:56:11 +0000 (03:56 +0100)
committerDavid Davidović <geosoft.corp@gmail.com>
Wed, 24 Dec 2014 03:53:13 +0000 (04:53 +0100)
commit0a5caebe25781d8762dae426864528e55a441587
treed01946d640c698043a92463ec56b3238b0aeef73
parent039c523c56ebaebe8176c46430f2ffda109dd0eb
Fix fn type mismatch error

rustc complains that we cannot assign two different fn's to a single
object within an if-else block. I was not able to figure out what causes
this; so deferring the execution of the particular function is a
reasonable fallback. Not very elegant and should be changed to something
with less boilerplate
src/cargo/ops/cargo_rustc/mod.rs